//
//  mainMyCell.m
//  HappyStore
//
//  Created by 李小辉 on 16/6/25.
//  Copyright © 2016年 LLJ. All rights reserved.
//

#import "mainMyCell.h"

@implementation mainMyCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)layoutSubviews{
    [super layoutSubviews];
    [self.imageView setFrame:CGRectMake(20, 17, 18, 18)];
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    [self.textLabel setFont:[UIFont systemFontOfSize:15]];
    [self.textLabel setTextColor:RGB(89, 87, 87)];
    [self.textLabel setFrame:CGRectMake(45, self.textLabel.frame.origin.y, self.textLabel.frame.size.width, self.textLabel.frame.size.height)];
    if (!self.imageView.image) {
        [self.textLabel setFrame:CGRectMake(12, self.textLabel.frame.origin.y, self.textLabel.frame.size.width, self.textLabel.frame.size.height)];
    }
}

@end
